// SphereDlg.cpp : implementation file
//

#include "stdafx.h"
#include "test.h"
#include "SphereDlg.h"
#include "CubeFilter.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSphereDlg dialog


CSphereDlg::CSphereDlg(Mesh3D * mesh,CWnd* pParent /*=NULL*/)
	: CDialog(CSphereDlg::IDD, pParent),malla(mesh)
{
	//{{AFX_DATA_INIT(CSphereDlg)
	m_steps = 1;
	//}}AFX_DATA_INIT
}


void CSphereDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSphereDlg)
	DDX_Text(pDX, IDC_STEPS, m_steps);
	DDV_MinMaxInt(pDX, m_steps, 1, 10);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSphereDlg, CDialog)
	//{{AFX_MSG_MAP(CSphereDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSphereDlg message handlers

void CSphereDlg::OnOK() 
{
	SphereFilter filter;
	UpdateData();
	filter(malla,m_steps);
	CDialog::OnOK();
}
